import api from './index'

// 表单下拉框数据输入时请求接口
export default {
	// 用电安全
	getElecSafetyList: (params) => api.get('/wb/wbElecSafety/list', params),
	//用电安全详情
	wbElecSafety: (id) => api.get('/wb/wbElecSafety/' + id),
	// 新增用电安全
	addElecSafety: (params) => api.post('/wb/wbElecSafety', params),
	// 疏散通道
	getExitList: (params) => api.get('/wb/wbExit/list', params),
	// 新增疏散通道
	addExit: (params) => api.post('/wb/wbExit', params),
	// 疏散通道详情
	getExitDetail: (id) => api.get('/wb/wbExit/' + id),
	// 申请企业认证
	setEntAuth: (params) => api.post('/wb/wbEntAuth', params),
	// 获取维保记录
	getPlanList: (params) => api.get('/wb/wbPlan/getEnterprisePlan', params),
	// 查询人员架构
	getArchitectureList: (params) => api.get('/wb/architecture/byAuthId', params),
	// 查看合作单位
	getWbCooperateList: (params) => api.get('/wb/contarctUser/partner', params),
	// 投诉建议
	complaint: (params) => api.post('/system/complaint', params),
	/** 获取月检预览图片 */
	previewMonthly: data => api.get(`/wb/app/wbPlan/previewMonthly/${data}`),
	/** 获取年检预览图片 */
	previewYearly: data => api.get(`/wb/app/wbPlan/previewYearly/${data}`),
	//新增人员架构
	architecture: (params) => api.post('/wb/architecture', params),
}